<?php TPL::output('global/header.tpl.htm'); ?>

<div class="bd">
<!--right_nav_s-->
<div class="tommy_rightDiv xBlog_tag">
  <div class="publishers">
    <h4 class="p_title">发布者</h4>
    <div class="publishers_info">
      <p class="faceHead"><a href="people/<?php echo $this->question_info['user_info']['user_name']; ?>"><img src="<?php echo get_avatar_url($this->question_info['published_uid'],'mid',$this->question_info['user_info']['avatar_file']); ?>" onMouseOver="eventsMouseM(this);"  rel="<?php echo $this->question_info['published_uid']; ?>"/></a></p>
      <p><a href="people/<?php echo $this->question_info['user_info']['user_name']; ?>"><?php echo $this->question_info['user_info']['user_name']; ?></a>
        <?php if ($this->user_id != $this->question_info['published_uid'] AND $this->user_id) { ?>
        <a href="javascript:;" onclick="follow_people($(this), $(this).find('em'), <?php echo $this->question_info['published_uid']; ?>); return false;" class="addtips<?php if ($this->user_follow_check) { ?> cur<?php } ?>"><em>
        <?php if ($this->user_follow_check) { ?>取消<?php } ?>关注</em></a>
        <?php } ?>
      </p>
      <b><?php echo $this->question_info['user_info']['signature']; ?></b> </div>
  </div>
  <?php if ($this->user_id) { ?>
  <div class=" RightListDiv">
    <h3 class="h3">邀请别人回复问题</h3>
    <p><a href="javascript:;" onclick="elementClickEvent.letter.default_invite(this);">站内邀请<span class="defa_nums"><?php echo count($this->invite_users); ?></span></a> &nbsp; <!--a href="javascript:;">邮件邀请</a--></p>
    <div id="default_invite" class="hide">
      <div class="default_query">
        <input type="text" name="" class="default_seachTxt" title="搜索站内用户" value="搜索站内用户" onfocus="if(this.value=='搜索站内用户'){this.value='';}" onblur="if(this.value==''){this.value='搜索站内用户';};" id="default_seach_txt"/>
        <div id="default_ajax_query" class="default_class_query hide"> 
          <!--<p class="default_dateLister" onclick="elementClickEvent.letter.default_addUser();">
				<a href="javascript:;" class="default_userhead"><img src="uploads/avatar/000/00/00/01_avatar_mid.jpg" title="Sank"/></a>
				Sank
				<span class="default_span">这是他的一句话介绍...</span>
			</p>--> 
        </div>
      </div>
      <p class="default_inbites" id="default_inbites"> </p>
      <ul class="default_lsit_ul">
        <?php if($this->invite_users) { ?>
        <?php foreach($this->invite_users as $key => $val){ ?>
        <li><a href="javascript:;" onClick="cancel_question_invite($(this), <?php echo $this->question_id;?>,<?php echo $val['uid']; ?>)" class="default_exit cur">取消邀请</a><a href="people/<?php echo $val['user_name']; ?>" class="i_imgs"><img src="<?php echo $val['avatar_file']; ?>"/></a><a href="people/<?php echo $val['user_name']; ?>" class="dis_v2"><?php echo $val['user_name']; ?></a>
          <p><?php echo cjk_substr($val['signature'], 12); ?></p>
        </li>
        <?php } ?>
        <?php } ?>
      </ul>
    </div>
  </div>
  <?php } ?>
  <?php if ($this->question_relike_list) { ?>
  <div class=" RightListDiv">
    <h3 class="h3">相关问题<em></em></h3>
    <p class="for_question_list">
    <?php foreach($this->question_relike_list AS $key => $val) { ?>
    <a href="question/<?php echo $val['question_id']; ?>"><?php echo $val['question_content']; ?><span class="s"><?php echo $val['answer_count'];?> 个回复</span></a>
    <?php } ?>
    </p>
  </div>
  <?php } ?>
  <div class=" RightListDiv" style="border-bottom:none;">
    <h3 class="h3">问题状态<em></em></h3>
    <p class="default_exe">最近活动：<span class="s"><?php echo date_friendly($this->question_info['update_time']); ?></span><br/>
      浏览：<span class="s"><?php echo $this->question_info['view_count']; ?></span> 次 <br/>
      关注者：<span class="s"><?php echo $this->question_info['focus_count']; ?></span> 人</p>
    <p class="default_GZ" id="focus_users"></p>
  </div>
</div>
<!--right_nav_e--> 
<!--left_nav_s-->
<div class="contant_left DIS_top discussion_element dis_ListEntry">
  <div id="Manytopics" class="shd" style="margin:10px 30px;">
  	<?php if ($this->question_info['category_info']['title']) { ?><a href="home/explore/category-<?php echo $this->question_info['category_info']['id']; ?>" class="class_all"><?php echo $this->question_info['category_info']['title']; ?></a><?php } ?>
    <div class="add_C" id="addtxt">
      <?php foreach($this->question_topics as $key => $val){ ?>
      <span val="<?php echo $val['topic_title']; ?>" id="<?php echo $val['topic_id']; ?>"><a href="topic/<?php echo $val['topic_title']; ?>" rel="<?php echo $val['topic_id']; ?>" title="<?php echo $val['topic_title']; ?>" onmouseover="eventstalk(this);"><?php echo $val['topic_title']; ?></a><em onclick="removeChilds(this)" class="hide">x</em></span>
      <?php } ?>
    </div>
    <?php if ($this->user_id) { ?>
    <a href="javascript:void(0);" class="editor" id="editor" onclick="hide('editorInput','editor','editorInput','editor hide',this)" title="话题编辑">话题编辑</a>
    <?php } ?>
    <?php if ($this->user_id) { ?>
    <div class="editorInput hide" id="editorInput">
      <div id="ajaxDate" class="hide">
        <div class="add" onclick="add('take');">添加 <span id="take" ></span>话题</div>
        <div id="txt"></div>
      </div>
      <input type="text" class="i_add" name="addName" >
      <a href="javascript:void(0);" class="default_blue_but" onclick="hide('editor','editorInput','editor ','editorInput hide',this);addElementVALUE();">完成</a>
      <p id="err" class="cr hide">请勿重复添加话题！</p>
    </div>
    <?php } ?>
  </div>
  <h3 class="x_h3 ">
    <div id="ed_title_s"> <span id="question_content"><?php echo $this->question_info['question_content']; ?></span>
      <?php if ($question_info['published_uid'] == $this->user_id OR $this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']) { ?>
      <a class="editorTxt" title="点击修改"  href="publish/question_id-<?php echo $this->question_id; ?>#question">修改</a>
      <?php } ?>
    </div>
  </h3>
  <div class="congtxt">
    <div id="question_detail"><?php echo $this->question_info['question_detail']; ?></div>
  </div>
  
  <?php if ($this->question_info['attachs']) {  ?>
  <!--<h2 class="disH2"><em>●</em>附件</h2>-->
  <div class="congtxt fb_pd">
    <?php foreach ($this->question_info['attachs'] AS $key => $attach) { ?>
    <?php 
		if ($attach['is_image']) { ?>
    <a href="<?php echo $attach['attachment']; ?>" target="_blank" rel="lightbox"><img src="<?php echo $attach['attachment']; ?>" alt="<?php echo $attach['attach_name']; ?>" /></a>
    <?php } else { ?>
    <p><a class="file_ico" href="<?php echo download_url($attach['file_name'], $attach['attachment']); ?>"><?php echo $attach['file_name']; ?></a></p>
    <?php } ?>
    <?php } ?>
  </div>
  <?php } ?>
  
	<div class="default_review default_vGi">
   
    <div class="fr default_SZ defa_log">
            
          <a onclick="elementClickEvent.letter.default_anonymity(event);" title="设置" href="javascript:" class="default_set fr">设置</a>
          <?php if ($this->user_id) { ?><a href="javascript:;" class="default_blue_but<?php if ($this->question_focus) { ?> cur<?php } ?>" onclick="focus_question($(this), $(this), <?php echo $this->question_id; ?>); return false;" title="<?php if ($this->question_focus) { ?>取消<?php } ?>关注"><?php if ($this->question_focus) { ?>取消<?php } ?>关注</a><?php } ?>
		  <p class="default_setPosition hide"> 
		  <?php if ($_GET['column'] == 'log') { ?>
		  	<a class="Questionfor_user" href="question/<?php echo $this->question_id; ?>">问题讨论</a>
		  <?php } else { ?>
		 	 <a class="Questionfor_user" href="question/id-<?php echo $this->question_id; ?>__column-log">修改记录</a>
		  <?php } ?>
          </p>
     </div>
    
	<span class="default_releasetime"><?php echo date_friendly($this->question_info['add_time']); ?></span><a href="javascript:;" class="layer_imgs layer_pl" onclick="toggle_comments(<?php echo $this->question_id; ?>, 'question'); return false;"><?php echo $this->question_info['comment_count']; ?> 条评论</a><?php if($this->user_id == $this->question_info['published_uid'] OR $this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']){ ?><a href="javascript:;" class="layer_imgs layer_p2" onclick="remove_question(<?php echo $this->question_id; ?>); return false;" title="删除问题">删除问题</a><?php } ?><?php if ($this->user_id) { ?><div class="for_question_v2" onMouseOver="this.className='for_question_v2 m';" onMouseOut="this.className='for_question_v2';"><span class="etc_v5">分享该问题</span><p>
<?php if (get_setting('sina_weibo_enabled') == 'Y' OR get_setting('qq_t_enabled') == 'Y') { ?>
<span class="etc_v2"  onclick="share_content('question', <?php echo $this->question_id; ?>, 'weibo', SYSTEM_WEIBO_ENABLED);" title="分享到微博.."><em class="el_v2 el_weibo"></em>微博</span>
 <?php } ?>
<span class="etc_v2" title="站内分享"  onclick="share_content('question', <?php echo $this->question_id; ?>, 'letter', SYSTEM_WEIBO_ENABLED);"><em class="el_v2 el_leter"></em>私信</span><span class="etc_v2"  onclick="share_content('question', <?php echo $this->question_id; ?>, 'mail', SYSTEM_WEIBO_ENABLED); return false;" title="电子邮件"><em class="el_v2 el_mail"></em>邮件</span></p></div><?php } ?>

	</div>
	
		<!--评论_s-->
	<div class="default_comment default_comment_top" id="question_comments_<?php echo $this->question_id; ?>" style="display:none"> 
	  <!--用户评论展示_s-->
	  <div name="comments_list"></div>
	  <!--用户评论展示_e-->
	  <form action="question/ajax/save_question_comment/question_id-<?php echo $this->question_id; ?>" method="post" class="post_question_form">
	    <?php if ($this->user_id) { ?>
	    <input class="default_textArea" type="text" name="message" class="answer_content" onkeydown="if (event.keyCode == 13) { ajax_post($('#question_comments_<?php echo $this->question_id; ?> form'), _comments_form_processer); return false; }" />
	    <p class="default_save"> <a href="javascript:;" onclick="toggle_comments(<?php echo $this->question_id; ?>, 'question'); return false;">取消</a> <a class="save_txt default_blue_but" onclick="ajax_post($('#question_comments_<?php echo $this->question_id; ?> form'), _comments_form_processer);return false;" href="#">确定</a> </p>
	    <?php } else { ?>
	    要参与问题讨论请先<a href="account/login/">登录</a>或<a href="account/register/">注册</a>
	    <?php } ?>
	  </form>
	</div>
	<!--评论_e-->
</div>
<div class="contant_left readns_discus index dis_ListEntry"> <a name="answers"></a>
  <h2 class="c_title">
    <?php if ($this->user_id AND $_GET['column'] != 'log') { ?>
    <p class="sux" id="sux"><a title="按票数排序" href="question/id-<?php echo $this->question_id; ?>__sort_key-agree_count__sort-DESC"<?php if ((!$_GET['uid'] && !$_GET['sort_key']) || $_GET['sort_key'] == 'agree_count') { ?> style="font-weight:bold;"<?php } ?>>按票数排序</a><a  title="按时间排序" href="question/id-<?php echo $this->question_id; ?>__sort_key-add_time__sort-ASC"<?php if ($_GET['sort_key'] == 'add_time') { ?> style="font-weight:bold;"<?php } ?>>• 按时间排序</a><a title="只显示我关注的人" href="question/id-<?php echo $this->question_id; ?>__uid-focus" <?php if ($_GET['uid'] == 'focus') { ?> style="font-weight:bold;"<?php } ?>>• 只显示我关注的人</a> </p>
    <?php } ?>
    
    <?php if ($_GET['column'] == 'log') { ?><a href="question/<?php echo $this->question_id; ?>" class="all_answer">返回讨论</a>问题日志<?php } else { ?><?php echo $this->answer_count; ?> 个回复<?php } ?></h2>
    
  <?php if ($_GET['column'] == 'log') { ?>
    <div id="layer_0"> 
      <div id="c_log_list"><p style="padding: 15px 0" align="center"><img src="<?php echo G_STATIC_URL; ?>/common/loading_b.gif" alt="" /></p></div>
      
      <div class="moreDiv" id="bp_log_more"><a href="#" class="mores">更多<em></em></a></div>
    </div>
    
    <script type="text/javascript">$(document).ready(function () { bp_more_load(G_BASE_URL + '/question/ajax/log/id-' + QUESTION_ID, $('#bp_log_more'), $('#c_log_list')); });</script>
  <?php } else { ?>
  <div class="BeforClass">
    <?php if ($this->answers) { foreach ($this->answers AS $key => $val) { ?>
    <?php if ($this->question_info['best_answer'] == $val['answer_id']) { ?>
    <div class="default_winner"><span class="winner_cup">奖杯</span><h3 class="best_reply">最佳回复</h3>
      <?php } ?>
      <a name="answer_<?php echo $val['answer_id']; ?>"></a>
      <ul class="contxt_List" uninterested_count="<?php echo $val['uninterested_count']; ?>" id="answer_list_<?php echo $val['answer_id']; ?>">
        <li>
          <div class="default_txt">
          	<p class="default_JF_ri">
            <?php if ($this->user_id AND $this->user_id != $val['uid']) { ?>
            <a name="<?php echo $val['answer_id']; ?>" status="<?php echo $val['agree_status']; ?>"></a> <a title="<?php if($val['agree_status'] == '1'){ ?>取消投票<?php } else { ?>投一票<?php } ?>" alt="<?php if($val['agree_status'] == '1'){ ?>取消投票<?php } else { ?>投一票<?php } ?>" class="default_num defa_agree<?php if($val['agree_status'] == '1'){ ?> up_cur<?php } ?>" onClick="change_agree($(this), '1')" href="javascript:;">赞同 </a><span name="agree_num" class="agree_num"><?php echo $val['agree_count']; ?></span>  <a title="<?php if ($val['agree_status'] == '-1') { ?>取消反对<?php } else { ?>反对，不会显示你的姓名<?php } ?>" alt="<?php if ($val['agree_status'] == '-1') { ?>取消反对<?php } else { ?>反对，不会显示你的姓名<?php } ?>" class="default_num defa_oppose<?php if($val['agree_status'] == '-1'){ ?> down_cur<?php } ?>" onClick="change_agree($(this), '-1')" href="javascript:;">反对</a>
            <?php } else { ?>
			<a name="<?php echo $val['answer_id']; ?>" status="<?php echo $val['agree_status']; ?>"></a> <a title="" class="default_num defa_agree prohibit_up" href="javascript:;">赞同 </a> <span name="agree_num" class="agree_num"><?php echo $val['agree_count']; ?></span> <a title=" " class="default_num defa_oppose prohibit_down " href="javascript:;">反对</a>
			<?php } ?>
			</p>
            <h3 class="default_uh"><a class="default_ubd" href="people/<?php echo $val['uname']; ?>"><?php echo $val['uname']; ?></a>
              <?php if ($val['signature']) { ?>
              ，<?php echo $val['signature']; ?>
              <?php } ?>
            </h3>
            <p class="default_ticket" name="agree_user_list" style="display:<?php if($val['agree_count'] == 0){ ?>none;<?php } else { ?>block<?php } ?>"> 赞同来自&nbsp; <span class="agee_people">
              <?php if($val['agree_users']) { ?>
              <?php $count = 0; foreach($val['agree_users'] as $uid => $user){ ?><a href="people/<?php echo $user;?>" rel="<?php echo $uid;?>" onmouseover="eventsMouseM(this);" name="agee_people" class="a<?php if($count >= 5){ ?> hide<?php } ?>"><?php echo $user;?></a><?php if(count($val['agree_users']) != ++$count && $count < 5) { ?>、<?php } ?><?php } ?>
				<a onclick="agree_user_more($(this));" class="tks_more<?php if($count <= 7){ ?> hide<?php } ?>" href="javascript:;">更多 »</a>
              <?php } ?>
              </span> </p>
            <p class="infotx">
            <div id="answer_content_<?php echo $val['answer_id']; ?>"><?php echo $val['answer_content']; ?></div>
            <?php if ($val['attachs']) { ?>
            <p class="imgScroll">
              <?php foreach ($val['attachs'] AS $attach) {  ?>
              <?php  if ($attach['is_image']) { ?>
              <a href="<?php echo $attach['attachment']; ?>" target="_blank" rel="lightbox"/><img src="<?php echo $attach['attachment'] ?>" alt="<?php echo $attach['attach_name']; ?>"></a>
              <?php } ?>
              <?php } ?>
            </p>
            <?php foreach ($val['attachs'] AS $attach) { ?>
            <?php  if(!$attach['is_image']) { ?>
            <p><a class="file_ico" href="<?php echo download_url($attach['file_name'], $attach['attachment']); ?>"><?php echo $attach['file_name']; ?></a></p>
            <?php } ?>
            <?php } ?>
            <?php } ?>
            </p>
            <p class="default_ticket"><?php echo date('Y-m-d H:i', $val['add_time']); ?>&nbsp;&nbsp;<a href="javascript:;" class="layer_imgs layer_pl" onclick="toggle_comments(<?php echo $val['answer_id']; ?>, 'answer'); return false;"><?php echo $val['comment_count']; ?> 条评论</a>
              <?php if ($this->user_id) { ?>
              &nbsp;&nbsp;<a href="javascript:;" onClick="share_content('answer', <?php echo $val['answer_id'];?>, 'mail', SYSTEM_WEIBO_ENABLED);" title="分享" class="layer_imgs layer_s">分享</a>
              <?php if($this->user_id!=$val['uid']){ ?>
              &nbsp;&nbsp;<a href="javascript:;"<?php if (!$val['user_rated_thanks']) { ?> onclick="answer_user_rate(<?php echo $val['answer_id'];?>, 'thanks', this);"<?php } ?> class="layer_imgs layer_t"  title="<?php if ($val['user_rated_thanks']) { ?>已<?php } ?>感谢">
              <?php if ($val['user_rated_thanks']) { ?>已<?php } ?>感谢</a>&nbsp;&nbsp;<a href="javascript:;" onclick="answer_user_rate(<?php echo $val['answer_id'];?>, 'uninterested', this);" class="layer_imgs layer_n" title="<?php if ($val['user_rated_uninterested']) { ?>撤消<?php } ?>没有帮助">
              <?php if ($val['user_rated_uninterested']) { ?>撤消<?php } ?>没有帮助</a><!--  &nbsp;&nbsp; <a href="javascript:;" title="收藏" class="layer_imgs layer_c">收藏</a> -->
              <?php } ?>
              <?php } ?>
              <?php if (($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator'] OR $val['uid'] == $this->user_id) AND ((time() - $val['add_time']) < (get_setting('answer_edit_time') * 60))) { ?>
              &nbsp;&nbsp;<a title="编辑" href="javascript:void(0);" id="edit_answer_<?php echo $val['answer_id']; ?>" onclick="ajax_edit($('#answer_content_<?php echo $val['answer_id']; ?>'), $('#answer_content_<?php echo $val['answer_id']; ?>'),  '<?php echo get_setting('base_url') . '/' . G_INDEX_SCRIPT; ?>question/ajax/edit_question_answer/question_id-<?php echo $this->question_id; ?>__answer_id-<?php echo $val['answer_id']; ?>__target_id-answer_content_<?php echo $val['answer_id']; ?>__display_id-edit_answer_<?php echo $val['answer_id']; ?>', false, true); return false;" class="layer_imgs layer_ed" title="快速编辑">快速编辑</a>&nbsp;&nbsp;<a href="javascript:;" onclick="edit_answer(<?php echo $val['answer_id']; ?>); return false;" class="layer_imgs layer_ed" title="高级编辑">高级编辑</a>&nbsp;&nbsp;<a href="javascript:;" onclick="remove_answer(<?php echo $val['answer_id']; ?>); return false;" class="layer_imgs layer_del" title="删除">删除</a>
              <?php } ?>
            </p>
                        
            <!--评论_s-->
            <div class="default_comment" id="answer_comments_<?php echo $val['answer_id']; ?>" style="display:none"> 
              <!--用户评论展示_s-->
              <div name="comments_list"></div>
              <!--用户评论展示_e-->
              <form action="question/ajax/save_answer_comment/answer_id-<?php echo $val['answer_id']; ?>" method="post">
                <?php if ($this->user_id) { ?>
                <input class="default_textArea" type="text" name="message" class="answer_content" onkeydown="if (event.keyCode == 13) { ajax_post($('#answer_comments_<?php echo $val['answer_id']; ?> form'), _comments_form_processer); return false; }" />
                <div class="default_save"><a href="javascript:;" onclick="toggle_comments(<?php echo $val['answer_id']; ?>, 'answer'); return false;">取消</a> <a class="save_txt default_blue_but" onclick="ajax_post($('#answer_comments_<?php echo $val['answer_id']; ?> form'), _comments_form_processer); return false;" href="javascript:;">确定</a> </div>
                <?php } else { ?>
                要参与问题讨论请先<a href="account/login/">登录</a>或<a href="account/register/">注册</a>
                <?php } ?>
              </form>
            </div>
            <!--评论_e--> 
          </div>
        </li>
		
        <li class="userFace"><a href="people/<?php echo $val['uname']; ?>" class="posiMgs_face"><img src="<?php echo get_avatar_url($val['uid'],'mid',$val['avatar_file']); ?>" onMouseOver="eventsMouseM(this);"  rel="<?php echo $val['uid']; ?>"/></a></li>
      </ul>
      <?php if ($this->question_info['best_answer'] == $val['answer_id']) { ?>
    </div>
    <?php } ?>
    <?php } ?>
    <?php } ?>
    <p id="load_uninterested_answers" style="display: none;" class="more default_more"><a href="javascript:;" class="a" onclick="qAlert('被折叠的回复是被大多数用户认为没有帮助的回复.');">为什么被折叠？</a><a href="javascript:;" class="b" onclick="elementClickEvent.letter.default_more(event); $('#uninterested_answers_list').toggle();"><span class="hide_answers_count">0</span> 个回复被折叠 </a></p>
    <div class="BeforClass" style="display: none;" id="uninterested_answers_list"></div>
    <a name="answer_form"></a>
    <div class="say_u" id="say_u">
      <?php if (!$this->user_id) { ?>
      <p align="center">要查看所有问题和参与问题请先<a href="account/login/">登录</a>或<a href="account/register/">注册</a></p>
      <?php } else if ($this->user_answered) { ?>
      <p align="center">一个问题只能回复一次，你可以编辑回复过的回复</p>
      <?php } else if ((get_setting('answer_self_question') == "N") && ($this->user_id == $this->question_info['published_uid'])) { ?>
      <p align="center">不能回复自己发布的问题，你可以在问题发布后的<?php echo get_setting('question_edit_time'); ?>分钟内修改问题</p>
      <?php } else { ?>
      <div class="txtarea">
        <form action="question/ajax/save_answer/" method="post" id="answer_form">
        	<input type="hidden" name="post_hash" value="<?php echo new_post_hash(); ?>" />
        	<input type="hidden" name="question_id" value="<?php echo $this->question_id; ?>" />
        	<input type="hidden" name="attach_access_key" value="<?php echo $this->attach_access_key; ?>" />
        	
        	<div style="margin-bottom: 15px">
	        		<textarea name="answer_content" id="answer_content" class="answer_content" rows="6"></textarea>
	        </div>
	        <div class="pre default_file_upload">
	        <div id="file_uploader_answer" class="_ajax_uploader userUploadDate"></div>
            <div class="default_reply_as">
            	<a  href="javascript:;" class="empty_cont fl" onclick="try{document.getElementById('answer_content').value='';}catch(e){}" title="点击清空回复框内容..">清空内容</a>
            	<?php if ($this->human_valid) { ?>
            	<span class="default_aotoNum"><img id="captcha" onclick="this.src = G_BASE_URL + '/account/captcha/rnd-' + Math.random();" title="点击换一张" src=""></span>
                <input type="text" class="default_autoCode"> &nbsp; 
                <?php } ?>
                <a class="default_blue_but" onclick="ajax_post($('#answer_form')); return false;" id="re_default_submit" href="javascript:;" title="回复">回复</a>
                <p class="empty_cont">[Ctrl+Enter 快捷回复]</p>
             </div>
             </div>
	        <p id="answer_content_message"></p>
	    </form>
      </div>
      <?php } ?>
    </div>
    <?php } ?>
  </div>
  <!--left_nav_e--> 
</div>
<script type="text/javascript">
var SYSTEM_WEIBO_ENABLED;
var ATTACH_ACCESS_KEY = '<?php echo $this->attach_access_key; ?>';
var ITEM_IDS = '<?php echo $_GET['item_id']; ?>';
var COMMENT_UNFOLD = '<?php echo $_GET['comment']; ?>';
var QUESTION_ID = <?php echo $this->question_id;?>;
var UNINTERESTED_COUNT = <?php echo get_setting('uninterested_fold'); ?>;

<?php if (get_setting('sina_weibo_enabled') == 'Y' OR get_setting('qq_t_enabled') == 'Y') { ?>
SYSTEM_WEIBO_ENABLED = 'Y';
<?php } ?>
</script> 

<?php TPL::output('global/footer.tpl.htm'); ?>